﻿<UserControl x:Class="P2.Cuberry.Modules.Framework.UserGroup.UserGroupsFindView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    
    Margin="0" MinWidth="230" Width="Auto" MinHeight="150" Height="150">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/P2.Cuberry.Framework.Layout;component/Styles/Styles.xaml"/>              
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>

    </UserControl.Resources>

    <Grid Keyboard.KeyDown="Control_KeyDown">

        <Grid.Resources>
            <Image x:Key="FindIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.Framework.UserGroup;component/Images/find16.gif" />
            <Image x:Key="ClearIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.Framework.UserGroup;component/Images/clear.png" />
            <Image x:Key="AddIcon" Height="16" Width="16" Source="/P2.Cuberry.Modules.Framework.UserGroup;component/Images/add.png" />
        </Grid.Resources>


        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <Grid.RowDefinitions>
            <RowDefinition Height="29"/>
            <RowDefinition Height="0" />
            <RowDefinition Height="199*"/>
            <RowDefinition Height="2" />
        </Grid.RowDefinitions>


        <Menu Grid.Column="0" Grid.Row="0" x:Name="menuMain" Height="25" VerticalAlignment="Top" Background="{DynamicResource MyBlueBackgroundGradientBrush}" >
            <MenuItem Name="btnUserGroupFind" Margin="2,4,0,2"  Header="{Translate UserGroupFind}" x:Uid="btnUserGroupFind" Command="{Binding UserGroupFindCommand}" Icon="{StaticResource FindIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
            <MenuItem Name="btnUserGroupClr" Margin="2,4,0,2"  Header="{Translate UserGroupClr}" x:Uid="btnUserGroupClr" Command="{Binding UserGroupClrCommand}" Icon="{StaticResource ClearIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
            <MenuItem Name="btnUserGroupAdd" Margin="2,4,0,2"  Header="{Translate UserGroupAdd}" x:Uid="btnUserGroupAdd" Command="{Binding UserGroupAddCommand}" Icon="{StaticResource AddIcon}" Style="{StaticResource P2FindMenuItemStyle}"/>
        </Menu>

       

        <Label Grid.Row="2"  Height="23" Margin="-2,30,0,0" Name="UserGroupNamesL" VerticalAlignment="Top" HorizontalAlignment="Left" Width="86" Content="{Translate UserGroupNamesL}" />
        <TextBox Height="23" Text="{Binding UserGroupName}" Margin="0,30,11,0" Name="userGroupIds" Style="{StaticResource P2TextBoxStyle}" VerticalAlignment="Top" Grid.Row="2" HorizontalAlignment="Right" Width="131" />
        <Label Content="{Translate UserGroupActiveL}" Height="23" HorizontalAlignment="Left" Margin="3,82,0,0" Name="userGroupActiveL" Tag="SxL" VerticalAlignment="Top" Width="86" Grid.Row="2" />
        <CheckBox Height="23" IsChecked="{Binding Active}" Margin="0,82,76,0" Name="active"  VerticalAlignment="Top" Grid.Row="2" HorizontalAlignment="Right" Width="18" IsThreeState="True" />
        
        

        
        
       
    </Grid>
</UserControl>
